package se.statifyme.server.entities;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.MappedSuperclass;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import se.statifyme.shared.HasOwner;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@Entity
@MappedSuperclass
public abstract class OwnedItem extends Item implements HasOwner {

	@XmlTransient
	@Basic(optional = false)
	private String ownerId;
	
	public String getOwnerId() {
		return ownerId;
	}
	
	public void setOwnerId(String ownerId) {
		this.ownerId = ownerId;
	}
}

